
class MemberStatusEntity{
  String fromAccount;
  String fromUserId;
  String fromNickName;
  int type;
  String  toAccount;
  String  toUserId;
  String  toNickName;
  String  giftType;
  String  giftSmallImg;
  int  giftNum;

  MemberStatusEntity(
      {this.fromAccount,
        this.fromUserId,
        this.fromNickName,
        this.type,
        this.toAccount,
        this.toUserId,
        this.toNickName,
        this.giftType,
        this.giftSmallImg,
        this.giftNum,
      });

  MemberStatusEntity.fromJson(Map<String, dynamic> json) {
    fromAccount = json['fromAccount'];
    fromUserId = json['fromUserId'];
    fromNickName = json['fromNickName'];
    type = json['type'];
    toAccount = json['toAccount'];
    toUserId = json['toUserId'];
    toNickName = json['toNickName'];
    giftType = json['giftType'];
    giftSmallImg = json['giftSmallImg'];
    giftNum = json['giftNum'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['fromAccount'] = this.fromAccount;
    data['fromUserId'] = this.fromUserId;
    data['fromNickName'] = this.fromNickName;
    data['type'] = this.type;
    data['toAccount'] = this.toAccount;
    data['toUserId'] = this.toUserId;
    data['toNickName'] = this.toNickName;
    data['giftType'] = this.giftType;
    data['giftSmallImg'] = this.giftSmallImg;
    data['giftNum'] = this.giftNum;
    return data;
  }
}
